package com.elvt.bolg.vo;

import lombok.Data;

/**
 * 封装返回结果
 */
@Data

public class ReturnInfo {

    private Boolean flag;
    private String username;
    private String msg;
    private  Object result;

    public ReturnInfo() {
    }

    public ReturnInfo(Boolean flag, String msg, Object result) {
        this.flag = flag;
        this.msg = msg;
        this.result = result;
    }

    public ReturnInfo(Boolean flag, String msg) {
        this.flag = flag;
        this.msg = msg;
    }

    public ReturnInfo(Boolean flag, Object result) {
        this.flag = flag;
        this.result = result;
    }

    public ReturnInfo(Boolean flag, String username, String msg) {
        this.flag = flag;
        this.username = username;
        this.msg = msg;
    }
}
